package com.fly.studio.home.app.arrange.worker;

import com.fly.studio.home.app.component.BaseContext;
import com.fly.studio.home.app.arrange.base.BaseWorker;
import com.jd.platform.async.wrapper.WorkerWrapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @author fuliying3
 * @date 2022/09/06 13:55:00
 */
@Slf4j
@Component
public class SearchWorker implements BaseWorker {

    @Override
    public BaseContext action(BaseContext context, Map<String, WorkerWrapper> map) {
        log.info("SearchWorker action context -> {}", context);
        return context;
    }

    @Override
    public BaseContext defaultValue() {
        log.warn("SearchWorker defaultValue");
        return null;
    }
}
